package com.qianheng.kit.common.dto;

import com.qianheng.kit.common.dto.shop.ShopDTO;
import com.qianheng.kit.common.dto.user.UserDTO;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;


public class DtoInitUtil {

    public static UserDTO instanceUserDto(){
        ShopDTO shop1 = new ShopDTO();
        shop1.setShopId(7891L);
        shop1.setShopName("7891旗舰店");
        ShopDTO shop2 = new ShopDTO();
        shop2.setShopId(7892L);
        shop2.setShopName("7892旗舰店");

        UserDTO userDTO = new UserDTO();
        userDTO.setUserId(9527L);
        userDTO.setUserName("唐伯虎");
        userDTO.setShopList(new ArrayList<>());
        userDTO.getShopList().add(shop1);
        userDTO.getShopList().add(shop2);
        Map<String, String> feature = new HashMap<>();
        feature.put("shopName", "店铺名称");
        feature.put("userName", "用户名称");
        feature.put("version", "12342234");
        userDTO.setFeature(feature);
        return userDTO;
    }
}
